package com.atxiao.demo.mapper;

import com.atxiao.demo.bean.FlowLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
//@Repository
public interface FlowLogMapper extends BaseMapper<FlowLog> {
    /**
     * 查询流水
     * @return
     */
    List<FlowLog> selectFlowLog(Integer card);





    @Select("select distinct business_type from t_business ")
    List<String> getTypes();

    /**
     * 添加流水
     */
    void insertBusiness(FlowLog flowLog);
}
